<?php
    /**
     * Created by PhpStorm.
     * User: walker
     * Date: 2019/1/14 0014
     * Time: 18:33
     */
    namespace App\Libs;
    use Illuminate\Http\Request;
    use Illuminate\Support\Facades\Session;

    class CommonUtils{
        public $admin=null;//管理员对象
        public function __construct(Request $request)
        {
            $this->init($request);
        }

        public function init(Request $request)
        {

            $this->getAdmin($request);
        }
        /**
         * 获取管理员数据
         */
        private function getAdmin(){
            $this->admin=Session::get('admin');
        }
    }